<?php

class MM_View extends Zend_View {
	
	public $infoboxActionName = 'infobox';
	
	protected $_infoBox = false;
	protected $_printable = false;
	
	/**
	 * Translation object
	 * @var MM_Translate
	 */
	protected $translate;
	
	/**
	 * Tell ViewRenderer to redrer infobox (or not)
	 *
	 * @param unknown_type $enable
	 */
	function infoBox($enable = true) {
		
		$this->_infoBox = $enable;
		
	}
	
	/**
	 * Allows ViewRenderer to pick proper script to render
	 *
	 * @return unknown
	 */
	function isInfobox() {

		return $this->_infoBox;
		
	}
	
	function setPrintable($yesOrNo) {
		$this->_printable = $yesOrNo;
	}
	
	function isPrintable() {
		return $this->_printable;
	}
	
    public function _($messageId, $locale = null)
    {
        return $this->translate->translate($messageId, $locale);
    }
    
}
